package com.stevenmoon.csdnplus.app;

import com.google.gson.Gson;

import org.simple.eventbus.EventBus;

/**
 * Created by WangJun on 2016/3/30.
 */
public class AppService {


    private static AppService sInstance = new AppService();

    private EventBus mBus;

    private Gson mGson;

    public static AppService getInstance() {
        return sInstance;
    }


    private AppService() {
        mBus = EventBus.getDefault();
        mGson = new Gson();
//        mGson = new GsonBuilder()
//                .setDateFormat("yyyy-MM-dd HH:mm:ss")
//                .create();
    }

    public EventBus getBus() {
        return mBus;
    }

    public Gson getGson() {
        return mGson;
    }


}
